﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using plas.core;
using DevComponents.DotNetBar.SuperGrid;

namespace plas.cps.ui
{
    public partial class VideoShowForm : AbstractForm
    {
        public VideoShowForm()
        {
            InitializeComponent();
        }

  

        //private void superGridControl2_Click(object sender, EventArgs e)
        //{
        //    ApplicationHandler actual = ApplicationHandler.GetInstance();
        //    Form df = (Form)actual.GetObject("Video");
        //    df.Show();
        //}

        private void superGridControl1_CellClick(object sender, DevComponents.DotNetBar.SuperGrid.GridCellClickEventArgs e)
        {
        }

        private void superGridControl1_Click(object sender, EventArgs e)
        {
            ApplicationHandler actual = ApplicationHandler.GetInstance();
            Form vi = (Form)actual.GetObject("Video");
            vi.Show();
        }

        private void VideoShowForm_Load(object sender, EventArgs e)
        {
            GridPanel panel1 = superGridControl1.PrimaryGrid;

            GridButtonXEditControl btnc = panel1.Columns["333"].EditControl as GridButtonXEditControl;
            btnc.Click += new EventHandler(btnc_Click);

            GridButtonXEditControl btnc2 = panel1.Columns["444"].EditControl as GridButtonXEditControl;
            btnc2.Click += new EventHandler(btnc2_Click);

        }

        void btnc2_Click(object sender, EventArgs e)
        {
            panelEx3.Visible = true;
        }

        void btnc_Click(object sender, EventArgs e)
        {
            ApplicationHandler actual = ApplicationHandler.GetInstance();
            Form vi = (Form)actual.GetObject("Video");
            vi.Show();
        }
    }
}
